Operator Library: Hardware Platform
For the imaFlex 2 Dual 100, imaFlex CXP-12 Quad and imaFlex CXP-12 Penta platform:
This operator provides a source of user data transferred from the user application back to the frame grabber for advanced processing. The DmaFromPC operator does not interpret transported data. Instead, this operator provides data in raw format 8-bit per value at parallelism degree, which corresponds to the amount of used PCIe lanes for the imaFlex platforms.
All data received by a DMA from the PC memory are sourced into the applet at the output link O. The DmaFromPC operator supports only one output format: 8-bit unsigned gray (raw), parallelism 64 (imaFlex 2 Dual 100) / 32 (imaFlex CXP-12 Quad and imaFlex CXP-12 Penta), maximum image height 1. The maximal image width must be divisible by the parallelism (64 for imaFlex 2 Dual 100, 32 for imaFlex CXP-12 Quad and imaFlex CXP-12 Penta). For the imaFlex 2 Dual 100 platform, the maximum image width is 2^31-64 = 2 147 483 584 pixels (bytes). For the imaFlex CXP-12 Quad and imaFlex CXP-12 Penta platforms, the maximum image width is 2^31-32 = 2 147 483 616 pixels (bytes).
The maximum image width can be configured by the user. The setting of the output link and thus the maximal image width must be greater than or equal to the raw frame size. Otherwise, the operator injects an image into VisualApplets, which violates the link properties. Depending on the application algorithm, this image may cause issues in the processing.
The DmaFromPC operator requires one VisualApplets resource of type DmaFromHostPort. Set the resource index for the operator in the resource dialog. Check 'Allocation of Device Resources' for more information.
| Available for Hardware Platforms |
|---|
| imaFlex 2 Dual 100 |
| imaFlex CXP-12 Penta |
| imaFlex CXP-12 Quad |
Resources
For all imaFlex platforms, the operator is using a resource of the type DmaFromHostPort, which is in range [0 : 0], i.e., only a single DmaFromPC operator can be used in the entire design.
You can see the FPGA device resources, if you open the dialog from the menu. The device resources are read-only:
| Property | Value |
|---|---|
| Operator Type | M |
| Output Links | O for imaFlex 2 Dual 100, image data output O for imaFlex CXP-12 Quad and imaFlex CXP-12 Penta, image data output |
| Link Parameter | Output Link O for imaFlex 2 Dual 100 | Output Link O for imaFlex CXP-12 Quad and imaFlex CXP-12 Penta |
|---|---|---|
| Bit Width | 8 | 8 |
| Arithmetic | {unsigned} | {unsigned} |
| Parallelism | 64 | 32 |
| Kernel Columns | 1 | 1 |
| Kernel Rows | 1 | 1 |
| Img Protocol | {VALT_IMAGE2D} | {VALT_IMAGE2D} |
| Color Format | GRAY | GRAY |
| Color Flavor | NONE | NONE |
| Max. Img Width | 2 147 483 584 | 2 147 483 616 |
| Max. Img Height | 1 | 1 |
The use of operator DmaFromPC is shown in the following examples:
-
Examples - The coprocessor feature of the imaFlex platform is shown. As an example, a median filter is calculated.
-
'Co-Processor Large Filter Calculation'
Examples - The coprocessor feature of the imaFlex platform is shown. As an example, a large filter kernel is calculated.


Prev

